package Entities;

import java.io.Serializable;

import common.CommonMethods;
/**@author Idan Mann
 * This class is an Extend deadline entity.
 * It is used to transfer extend deadlien requests from and to the database.
 * 
 */
public class ExtendEntity implements Serializable
{
	
	private static final long serialVersionUID = -8523224923031340514L;
	private String extID; // the extension ID
	private String requestID; // request ID
	private String reason; // Reason for extension
	private String oldStatus; // current request status 
	private String newDeadline; // requested deadline
	private String currentTable; // name of the table wasExtended is at
	private String wasExtendedColumnName;
	private String requestIDColumnName;
	
	public ExtendEntity()
	{}
	
	public String getExtID() 
	{
		return extID;
	}
	public void setExtID(String extID)
	{
		this.extID = extID;
	}
	public String getRequestID()
	{
		return requestID;
	}
	public void setRequestID(String requestID)
	{
		this.requestID = requestID;
	}
	public String getReason() 
	{
		return reason;
	}
	public void setReason(String reason) 
	{
		this.reason = CommonMethods.cleanStringForQuery(reason);
	}
	public String getOldStatus()
	{
		return oldStatus;
	}
	public void setOldStatus(String oldStatus)
	{
		this.oldStatus = oldStatus;
	}
	public String getNewDeadline() 
	{
		return newDeadline;
	}
	public void setNewDeadline(String newDeadline)
	{
		this.newDeadline = newDeadline;
	}

	public String getCurrentTable() 
	{
		return currentTable;
	}

	public void setCurrentTable(String currentTable) 
	{
		this.currentTable = currentTable;
	}

	public String getWasExtendedColumnName()
	{
		return wasExtendedColumnName;
	}

	public void setWasExtendedColumnName(String wasExtendedColumnName)
	{
		this.wasExtendedColumnName = wasExtendedColumnName;
	}

	public String getRequestIDColumnName() 
	{
		return requestIDColumnName;
	}

	public void setRequestIDColumnName(String requestIDColumnName)
	{
		this.requestIDColumnName = requestIDColumnName;
	}

}
